<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .wrapper1 {
      display: flex;

    }

    .wrapper2 {
      display: flex;
      flex-flow: column;
      height: 300px;
    }

    .item {
      height: 50px;
      line-height: 50px;
      text-align: center;
    }
  </style>
</head>

<body>
  <div class="wrapper1">
    <div class="item" style="background-color: red;flex:1;">我在左边显示的文字</div>
    <div class="item" style="background-color: blue;flex:2">我在中边显示的文字</div>
    <div class="item" style="background-color: green; flex:1">我在右边显示的文字</div>
  </div>
  <hr>
  <div class="wrapper2">
    <div class="item" style="background-color: red;flex:1;">我在左边显示的文字</div>
    <div class="item" style="background-color: blue;flex:2;">我在中边显示的文字</div>
    <div class="item" style="background-color: green;flex:1;">我在右边显示的文字</div>
  </div>
</body>

</html>